package cn.rxmind.dlicense.core.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 验证事件，作为一种验证结果的通知，避免暴露事件源，然而 ValidateEvent 本身还是暴露了证书逻辑，
 * 如此不妨让使用者配置注册通知方式，由utry-license去调用也可
 *
 * @author renxin
 * @email renxinzhiliangzhi@163.com
 * @date 2021/4/26 2:49 下午
 */
@Getter
public class DValidateEvent extends ApplicationEvent implements DLicenseEvent {

    private String result;
    private String  validatorDescription;

    public DValidateEvent(String result, String validatorDescription) {
        super(validatorDescription);
        this.result = result;
        this.validatorDescription = validatorDescription;
    }
}
